package cn.itsource;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@SpringBootApplication
// 启动Eureka注册中心 必须要有
@EnableEurekaServer
public class EurekaStart {

    public static void main(String[] args) {

        //new SpringApplicationBuilder(Application.class).web(true).run(args);
        SpringApplication.run(EurekaStart.class,args);
    }

}